package com.informationsystem.service.impl;

import com.informationsystem.dao.SystemuserDao;
import com.informationsystem.model.Systemuser;
import com.informationsystem.service.SystemuserManager;
import com.informationsystem.service.impl.GenericManagerImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import javax.jws.WebService;

@Service("systemuserManager")
@WebService(serviceName = "SystemuserService", endpointInterface = "com.informationsystem.service.SystemuserManager")
public class SystemuserManagerImpl extends GenericManagerImpl<Systemuser, Long> implements SystemuserManager{
    SystemuserDao systemuserDao;

    @Autowired
    public SystemuserManagerImpl(SystemuserDao systemuserDao) {
        super(systemuserDao);
        this.systemuserDao = systemuserDao;
    }

	@Override
	public Systemuser getUserByUsername(String username) {
		return systemuserDao.getUserByUsername(username);
	}
}